package array;

public class DefineDetails {
	public static void main(String[] args) {
		// 数组保存相同的数据类型  byte,short,char -> int -> long -> float -> double
		byte b = 1;
		short s = 2;
		int i = 3;
		long l = 4;
		char c = 'A';
		float f = 1.1F;  // 副作用
		double d = 2.2;
		double[] weights = {b,s,i,c,l,f,d};  // 1,2,3,4,1.1F,2.2
		
		System.out.println(weights[0]);
		System.out.println(weights[1]);
		System.out.println(weights[2]);
		System.out.println(weights[3]);
		System.out.println(weights[4]);
		System.out.println(weights[5]);
		System.out.println(weights[6]);
	}
}
